Ext.define('StaffServer.view.degreeStudy.DegreeStudyDetailForm', {
	extend : "Ext.form.Panel",
	alias : 'widget.degreeStudyDetailForm',

	// 基础属性
	labelAlign : 'right',
	frame : true,
	defaultType : 'panel',
	bodyStyle : 'padding: 5px 5px 5px 15px',
	border : false,
	buttonAlign : 'center',
	defaults : {
		selectOnFocus : true,
		msgTarget : 'side'
	},

	// 基础属性
    labelAlign: 'right',
    frame: true,
    defaultType: 'textfield',
    bodyStyle : 'padding: 5px 5px 5px 15px',
    border: false,
    buttonAlign: 'center',
    defaults: {
        selectOnFocus: true,
        msgTarget: 'side'
    },
    
    items: [{
        fieldLabel: '编号',
        name: 'id',
        hidden: true
    }, {
        fieldLabel: '部门',
        name: 'department',
        allowBlank: false
    }, {
        fieldLabel: '工号',
        name: 'staffId',
        allowBlank: false
    }, {
        fieldLabel: '教师姓名',
        name: 'staffName',
        allowBlank: false
    }, {
        fieldLabel: '年龄',
        name: 'age'
      
    }, {
        fieldLabel: '进修内容',
        name: 'content',
        allowBlank: false
    }, {
        fieldLabel: '进修学校',
        name: 'school',
        allowBlank: false
    }, {
        fieldLabel: '所修专业',
        name: 'subject'
    }, {
        fieldLabel: '开始时间',
        xtype: 'datefield',
        format: 'Y-m-d',
        name: 'startTimeFormat',
        allowBlank: false
    }, {
        fieldLabel: '结束时间',
        xtype: 'datefield',
        format: 'Y-m-d',
        name: 'endTimeFormat'
    }, {
        fieldLabel: '备注',      
        xtype:'textareafield',
        grow : true,
        name: 'remark'
    }],

	initComponent : function() {
		this.dockedItems = [ {
			xtype : 'statusbar',
			dock : 'bottom'
		} ];
		this.callParent(arguments);
	}

});